package com.ctrip.framework.apollo.common.utils;

import org.hibernate.resource.jdbc.spi.StatementInspector;

public class UpperCaseSQLInspector implements StatementInspector {
    @Override
    public String inspect(String sql) {
        if (sql == null) {
            return null;
        }
        // Replace backticks with double quotes and convert identifiers to uppercase
        sql = sql.replace("`", "");
        // Optionally, you can implement logic to convert identifiers to uppercase
        return sql.toUpperCase(); // If your identifiers need uppercase
    }
}

